package imgsei.wcj.com.commonbusiness.router;

import android.content.Context;

import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.annotation.Interceptor;
import com.alibaba.android.arouter.facade.callback.InterceptorCallback;
import com.alibaba.android.arouter.facade.template.IInterceptor;

import imgsei.wcj.com.commonbusiness.utils.LogUtils;

/**
 * arouter 登录拦截器
 * @ author LUCKY
 * @ create date 2018/11/7 08:50
 *
 */

@Interceptor(priority = 1,name = "登陆拦截器")
public class LoginInterceptor implements IInterceptor {
    private static final String TAG = "LoginInterceptor";
    @Override
    public void process(final Postcard postcard, final InterceptorCallback callback) {
        LogUtils.showLogD(TAG,"process");
        //        验证登陆，待完善
        callback.onContinue(postcard);  // 处理完成，交还控制权

    }

    @Override
    public void init(Context context) {
        LogUtils.showLogD(TAG,"init");
    }
}
